package cz.cvut.fel.nur.rcp.classes;

import java.util.HashMap;
import java.util.List;

public class Recipe {

	private String name;
	private int time;
	private int calories;
	private int sugar;
	private int fat;
	private int proteins;
	private HashMap<Ingredient, Integer> ingredients;
	private String image;
	private String video;
	private List<String> steps;

	
	public int hashCode() {
		return name.hashCode();
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getTime() {
		return time;
	}

	public void setTime(int time) {
		this.time = time;
	}

	public int getCalories() {
		return calories;
	}

	public void setCalories(int calories) {
		this.calories = calories;
	}

	public int getSugar() {
		return sugar;
	}

	public void setSugar(int sugar) {
		this.sugar = sugar;
	}

	public int getFat() {
		return fat;
	}

	public void setFat(int fat) {
		this.fat = fat;
	}

	public int getProteins() {
		return proteins;
	}

	public void setProteins(int proteins) {
		this.proteins = proteins;
	}

	public HashMap<Ingredient, Integer> getIngredients() {
		return ingredients;
	}

	public void setIngredients(HashMap<Ingredient, Integer> ingredients) {
		this.ingredients = ingredients;
	}

	public List<String> getSteps() {
		return steps;
	}

	public void setSteps(List<String> steps) {
		this.steps = steps;
	}
	
	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getVideo() {
		return video;
	}

	public void setVideo(String video) {
		this.video = video;
	}

	public Recipe(String name, int time, int calories, int sugar, int fat, int proteins, HashMap<Ingredient, Integer> ingredients, String image, String video, List<String> steps) {
		this.name = name;
		this.time = time;
		this.calories = calories;
		this.sugar = sugar;
		this.fat = fat;
		this.proteins = proteins;
		this.ingredients = ingredients;
		this.image = image;
		this.video = video;
		this.steps = steps;
	}
}
